<?php

namespace app\admin\model;

use support\Model;

class ApiGroup extends Model
{
    public $timestamps = false;

    protected $fillable = [
        'key',
        'name',
        'weigh',
    ];

    protected $visible = [
        'key',
        'name',
        'weigh',
    ];

    public function apidescs() {
        return $this->hasMany(ApiDesc::class, 'group_id');
    }
}
